package cn.com.homeyoda.aimate.aihealth.ui.home;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import cn.com.homeyoda.aimate.aihealth.R;
import cn.com.homeyoda.aimate.aihealth.bean.ReMenBean;
import cn.com.homeyoda.aimate.aihealth.bean.ZuiXinBean;

import java.util.List;

/**
 * Created By 刘纯贵
 * Created Time 2020/4/30
 */
public class ReMenAdapter extends BaseQuickAdapter<ReMenBean, BaseViewHolder> {
    public ReMenAdapter(int layoutResId, @Nullable List<ReMenBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, ReMenBean item) {

        helper.setText(R.id.remen_title,item.getTitle());
        helper.setText(R.id.remen_content,item.getContent());
        helper.setText(R.id.time,"时间: "+item.getTime());
        helper.setText(R.id.renshu,"人数: "+item.getRenshu());
        helper.setText(R.id.baoming,item.getBaomingNum()+"人已报名");

    }

    @Override
    public void setNewData(@Nullable List<ReMenBean> data) {
        super.setNewData(data);
    }
}
